using System;
using System.Collections.Generic;
using System.Text;
using SalonPay.Entity;
namespace SalonPay.DAL
{
    public class UserDAL
    {
        public static int AddUser(tb_UserInfo userInfo)
        {
            pp_Insert_User pp = new pp_Insert_User();
            pp.UBankArea = userInfo.UBankArea;
            pp.UBankCard = userInfo.UBankCard;
            pp.UBankName = userInfo.UBankName;
            pp.UBankType = userInfo.UBankType;
            pp.UCountry = userInfo.UCountry;
            pp.UDrawPwd = userInfo.UDrawPwd;
            pp.UEmail = userInfo.UEmail;
            pp.UGender = userInfo.UGender;
            pp.UMsn = userInfo.UMsn;
            pp.UQQ = userInfo.UQQ;
            pp.URegDate = userInfo.URegDate;
            pp.URegIp = userInfo.URegIp;
            pp.UserName = userInfo.UserName;
            pp.UserPwd = userInfo.UserPwd;
            pp.USkype = userInfo.USkype;
            pp.UTeleContent = userInfo.UTeleContent;
            pp.UTeleType = userInfo.UTeleType;
            pp.UTelNum = userInfo.UTelNum;
            pp.UTrueName = userInfo.UTrueName;

            pp.UPusher = userInfo.UPusher;
            pp.ULobby = userInfo.ULobby;
            pp.UClubType = userInfo.UClubType;


            pp.ExecuteNonQuery();
            int result = pp.Result;
            return result;

        }
    }
}
